package cn.dm.service;


import cn.dm.pojo.User;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@RequestMapping("/refactor")
public interface FeignService {
        @RequestMapping(value = "/hello4",method = RequestMethod.GET)
        public String hello(@RequestParam String name);
        @RequestMapping(value = "/hello5",method = RequestMethod.GET)
        public String hello(@RequestParam String name, @RequestParam Integer age);
        @RequestMapping(value = "/hello6",method = RequestMethod.POST)
        public String hello(@RequestBody User user);
}
